package org.train.entity;

import lombok.Data;

@Data
public class RevenueExpenditureInfoVo{
    // 可从ProjectPo中获取
    private Integer id;
    private String contractName;
    private String firstParty;
    private String projectLeader;
    private Double contractAmount;
    private Double bieFee;
    // 需从RevenueExpenditure表中获取
    private Double totalBilling;
    private Double annualBilling;
    private Double totalFundsReceived;
    private Double annualFundsReceived;
    private Double annualExpenditure;

    public RevenueExpenditureInfoVo assignProjectPo(ProjectPo po){
        this.id = po.getId();
        this.contractName = po.getContractName();
        this.firstParty = po.getFirstParty();
        this.projectLeader = po.getProjectLeader();
        this.contractAmount = po.getContractAmount();
        this.bieFee = po.getBidFee();
        return this;
    }
}
